    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

		<xsl:template match="/"> 
        
				<xsl:apply-templates/>
				
		 </xsl:template>
		  
		  
		
		   <xsl:template match="msgerreur">
			 <xsl:if test="text()">
			  <span>
				 <xsl:value-of select="."/> 
			   </span> 
			</xsl:if>
          </xsl:template>
	
	
			<xsl:template match="client" >
		     <form method="POST" name="formClientAdmin"  >
			  <xsl:attribute  name="onsubmit" >return verifierFormClientAdmin()</xsl:attribute>
			  <fieldset class="fieldsetglobal" >
				<legend class="titreRouge">
				<xsl:call-template name="action"/>
			  <xsl:text> un Client</xsl:text>			
			</legend>
				
				<xsl:call-template name="contenuForm">
					<xsl:with-param name="refid" select="./@id"/>
					<xsl:with-param name="refprenom" select="./prenom"/>
					<xsl:with-param name="refnom" select="./nom"/>
					<xsl:with-param name="reflogin" select="./login"/>
					<xsl:with-param name="refpass" select="./pass"/>
					<xsl:with-param name="reftelephone" select="./telephone"/>
					<xsl:with-param name="refemail" select="./email"/>
					<xsl:with-param name="refadresse" select="./adresse"/>
					<xsl:with-param name="refville" select="./ville"/>
					<xsl:with-param name="refcodepostal" select="./codepostal"/>
					<xsl:with-param name="refsexe" select="./sexe"/>
				</xsl:call-template>
			</fieldset >
			
					<div class="divsubmit">
							<input type="hidden" name="module"  >
								<xsl:attribute name="value">
									<xsl:value-of select="local-name()"/>
								</xsl:attribute>
							</input>
							
							<input type="hidden" name="action"  >
								<xsl:attribute name="value">
									<xsl:call-template name="action"/>
								</xsl:attribute>
							</input>
						   <input type="submit" value="Valider"  />
					</div>
		
		     </form>
         </xsl:template>
		  
	
		 <xsl:template name="action" >
		     <xsl:value-of select="//action"/>
		 </xsl:template>

		  
			
	<xsl:template name="contenuForm" >
			<xsl:param name="refid" />
			<xsl:param name="refprenom" />
			<xsl:param name="refnom" />
			<xsl:param name="reflogin" />
			<xsl:param name="refpass" />
			<xsl:param name="reftelephone" />
			<xsl:param name="refemail" />
			<xsl:param name="refadresse" />
			<xsl:param name="refville" />
			<xsl:param name="refcodepostal" />
			<xsl:param name="refsexe"/>
				
				<table border="0" cellpadding="2" cellspacing="0" class="tableauFormAdmin">
					<input type="hidden" name="idclient"  >
						<xsl:attribute name="value">
                                 <xsl:value-of select="$refid"/>
                          </xsl:attribute>
					</input>
					
					<tr>
						<td valign="top">Prenom du client:</td>
						<td>
							<input type="text" size="30" name="prenom"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refprenom"/>
								</xsl:attribute>
							</input>
							<span  id="err_prenom" ></span>
						</td>	
							
					</tr>	
					<tr>
						<td valign="top">Nom du client:</td>
						<td>
							<input type="text" size="30" name="nom"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refnom"/>
								</xsl:attribute>
							</input>
							<span  id="err_nom" ></span>
						</td>	
							
					</tr>
					<tr>
						<td valign="top">Login :</td>
						<td>
							<input type="text" size="30" name="login"  >
							<xsl:attribute  name="onblur" >AJAX_verifierLoginClientAdmin()</xsl:attribute>
								<xsl:attribute name="value">
									<xsl:value-of select="$reflogin"/>
								</xsl:attribute>
								<xsl:if test="$refid!=-1">
									<xsl:attribute name="readonly">true</xsl:attribute>
								</xsl:if>
							</input>
							<span  id="err_login" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Mot de Passe :</td>
						<td>
							<input type="text" size="30" name="pass"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refpass"/>
								</xsl:attribute>
							</input>
							<span  id="err_pass" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Telephone :</td>
						<td>
							<input type="text" size="30" name="telephone"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$reftelephone"/>
								</xsl:attribute>
							</input>
							<span  id="err_telephone" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Email :</td>
						<td>
							<input type="text" size="30" name="email"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refemail"/>
								</xsl:attribute>
							</input>
							<span  id="err_email" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Adresse :</td>
						<td>
							<input type="text" size="30" name="adresse"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refadresse"/>
								</xsl:attribute>
							</input>
							<span  id="err_adresse" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Ville :</td>
						<td>
							<input type="text" size="30" name="ville"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refville"/>
								</xsl:attribute>
							</input>
							<span  id="err_ville" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Code postal :</td>
						<td>
							<input type="text" size="30" name="codepostal"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refcodepostal"/>
								</xsl:attribute>
							</input>
							<span  id="err_codepostal" ></span>
						</td>	
					</tr>
					<tr>
						<td valign="top">Sexe :</td>
						<td>
							<input type="text" size="30" name="sexe"  >
								<xsl:attribute name="value">
									<xsl:value-of select="$refsexe"/>
								</xsl:attribute>
							</input>
							<span  id="err_sexe" ></span>
						</td>	
					</tr>
				
				</table>
			</xsl:template>
	
    </xsl:stylesheet>
